package com.kuaimacode.kframework.web.vo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.api.vo.request
 * @Description: created by IntelliJ IDEA
 * @date 2019-03-10 15:44
 */
@Data
public class CheckValidCodeReq {

    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = "^1(3|4|5|6|7|8|9)\\d{9}$",message = "手机号码格式错误")
    @NotBlank(message = "手机号码不能为空")
    private String phone;
    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;
}
